package util;


import java.util.regex.Pattern;

public class IdCardUtil {

	/**
	 * 二代身份证正则表达式
	 */
	public static boolean checkIdCard(String idNo) {
		return Pattern.matches("^[1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}([\\d|x|X]{1})$", idNo);
	}

}
